<template>
    <div>   
        <van-field label="合作商"  v-model="form.name" />
        <van-field label="合作商编号"  v-model="form.code" />
        <van-field label="合作商价格"  v-model="form.price" />
        <van-button @click="add">添加</van-button>
        <br>
        <br>
        <br>
        <!-- {{coop}} -->
      
    </div>
</template>

<script>
    export default {
        data() {
            return {
                form:{},
                show:0,
                coop:[]
            }
        },
        methods: {
            add(){
                this.$axios.post('/project/coop/',this.form).then(res=>{
                        this.getcoop()
                })
            },
        
        },
        mounted() {
            this.getcoop()
        },
    }
</script>

<style scoped>

</style>